package bmaso.purest.castor;

import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;

public class UnmarshalTagTEI extends TagExtraInfo {
	public VariableInfo[] getVariableInfo(TagData data) {
		String objectVarName = data.getAttributeString("var");
		if(objectVarName == null || objectVarName.length() == 0) {
			objectVarName = "unmarshalledObject";
		}
		
		VariableInfo[] ret = new VariableInfo[] {
		    new VariableInfo(objectVarName, "java.lang.String",
		    		true, VariableInfo.AT_END)
		};
		
		return ret;
	}

}
